#include "Log.h"

namespace Stasi
{
	void Log::Write(std::string report)
	{
		reports.push_back(report);
		m_strm.WriteString(report);
	}

	void Log::Timestamp()
	{
		std::string timeT;
		time(&rawtime);
		tminfo = localtime(&rawtime); 
		timeT = asctime(tminfo);
		timestamp.push_back(timeT);
		m_strm.WriteString(timeT);
	}

	void Log::WriteStamp(std::string report)
	{
		std::string timeT;
		time(&rawtime);
		tminfo = localtime(&rawtime); 
		timeT = asctime(tminfo);
		timestamp.push_back(timeT);
		reports.push_back(report);
		m_strm.WriteString(timeT, report);
	}
}